namespace CSharpPro._1021;

public class Demo
{
    public void TestPrint()
    {
        int int32 = Convert.ToInt32("123");
        Student student = new Student();
        student.Name = "John";
        student.Age = 123;
        Console.WriteLine(student);
        Father father = new Father();
        Father father1 = new Child();
    }

    public int Compare(int a, int b, int c)
    {
        if (a > b && a > c)
        {
            return a;
        }
        else if (b > a && b > c)
        {
            return b;
        }
        else if (b < a && b < c)
        {
            return c;
        }
        else
        {
            return -1;
        }
    }
}